diff options
author | bharat <bharat@coral.ithought.org> | 2009-06-01 00:22:21 -0400 |
---|---|---|
committer | bharat <bharat@coral.ithought.org> | 2009-06-01 00:22:21 -0400 |
commit | c96b81db6521c8d2b0f3601557011661b0a2d9b8 (patch) | |
tree | 60192a85a14d3e0aa1ec7f1d5c78d1153099f670 /installer/installer.php | |
parent | 1f7cec2e754ad2eb933cf76cd59a88bf49853f49 (diff) |
Fix a warning
Diffstat (limited to 'installer/installer.php')
-rw-r--r-- | installer/installer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/installer/installer.php b/installer/installer.php index ab2963ba..1a36ddb5 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -50,6 +50,7 @@ class installer { static function unpack_sql($config) { $prefix = $config["prefix"]; + $buf = null; foreach (file(DOCROOT . "installer/install.sql") as $line) { $buf .= $line; if (preg_match("/;$/", $buf)) { @@ -133,4 +134,4 @@ class installer { static function prepend_prefix($prefix, $sql) { return preg_replace("#{([a-zA-Z0-9_]+)}#", "{$prefix}$1", $sql); } -}
\ No newline at end of file +} |