Include rrd.inc if dump_rrd_to_xml() is not found to be included to avoid Fatal error: Call to undefined function dump_rrd_to_xml() in /etc/inc/upgrade_config.inc on line 1752

This commit is contained in:
Scott Ullrich 2010-06-09 15:06:01 -04:00
parent 4a1ee8ac31
commit 901aa044a5

View File

@ -34,11 +34,13 @@ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
pfSense_MODULE: config
*/
if(!function_exists("dump_rrd_to_xml"))
require("rrd.inc");
/* Upgrade functions must be named:
* upgrade_XXX_to_YYY
* where XXX == previous version, zero padded, and YYY == next version, zero padded
*/
function upgrade_010_to_011() {
global $config;
$opti = 1;
@ -2062,4 +2064,4 @@ function upgrade_063_to_064() {
}
}
?>
?>