Skip to content
Browse files

config-dist.php MDL-21603 - prevent php5 strict warnings with defualt…

… config
  • Loading branch information...
1 parent d472b68 commit f01ce862ec3acaab347153ed5e64037e381a90fb @danpoltawski danpoltawski committed Feb 21, 2010
Showing with 2 additions and 0 deletions.
  1. +1 −0 config-dist.php
  2. +1 −0 install.php
View
1 config-dist.php
@@ -28,6 +28,7 @@
// //
///////////////////////////////////////////////////////////////////////////
unset($CFG); // Ignore this line
+$CFG = new stdClass();
//=========================================================================
// 1. DATABASE SETUP
View
1 install.php
@@ -533,6 +533,7 @@
$str .= 'unset($CFG);'."\r\n";
$str .= "\r\n";
+ $str .= '$CFG = new stdClass();'."\r\n";
$str .= '$CFG->dbtype = \''.$INSTALL['dbtype']."';\r\n";
$str .= '$CFG->dbhost = \''.addslashes($INSTALL['dbhost'])."';\r\n";
if (!empty($INSTALL['dbname'])) {

0 comments on commit f01ce86

Please sign in to comment.
Something went wrong with that request. Please try again.