From c96b81db6521c8d2b0f3601557011661b0a2d9b8 Mon Sep 17 00:00:00 2001 From: bharat Date: Mon, 1 Jun 2009 00:22:21 -0400 Subject: Fix a warning --- installer/installer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'installer') 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 +} -- cgit v1.2.3