diff options
author | Ermal <eri@pfsense.org> | 2011-03-30 20:58:02 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-30 20:58:02 +0000 |
commit | cb0e3f8e7cf6bfba6f40477944bde48d21318891 (patch) | |
tree | 15f2dcea9b4b91d49f60be51e5224f2e681862aa /etc/inc/config.lib.inc | |
parent | 47e5f74198c5b7a1dde6dd29a57dfe4ee85edb9c (diff) | |
download | pfsense-cb0e3f8e7cf6bfba6f40477944bde48d21318891.zip pfsense-cb0e3f8e7cf6bfba6f40477944bde48d21318891.tar.gz |
Check for function existence before calling it.
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r-- | etc/inc/config.lib.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index 11e1ec3..1b7766a 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -404,7 +404,8 @@ function convert_config() { $cur = $config['version'] * 10; $next = $cur + 1; $migration_function = sprintf('upgrade_%03d_to_%03d', $cur, $next); - $migration_function(); + if (function_exists($migration_function)) + $migration_function(); $migration_function = "{$migration_function}_custom"; if (function_exists($migration_function)) $migration_function(); |