From baa220186e176191e34383b5871746cefe6e5c8e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 13 May 2009 22:34:54 +0000 Subject: Suppress some warnings --- installer/index.php | 2 +- installer/installer.php | 2 +- installer/web.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'installer') diff --git a/installer/index.php b/installer/index.php index f06bfcf1..6b1d434b 100644 --- a/installer/index.php +++ b/installer/index.php @@ -30,7 +30,7 @@ require(DOCROOT . "installer/installer.php"); if (php_sapi_name() == "cli") { include("cli.php"); } else { - if ($_GET["page"] == "check") { + if (@$_GET["page"] == "check") { include("check.html.php"); } else { include("web.php"); diff --git a/installer/installer.php b/installer/installer.php index febbc227..84adc5f9 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -76,7 +76,7 @@ class installer { } static function db_empty($config) { - $query = "SHOW TABLES IN {$config[dbname]} LIKE '{$config[prefix]}items'"; + $query = "SHOW TABLES IN {$config['dbname']} LIKE '{$config['prefix']}items'"; return mysql_num_rows(mysql_query($query)) == 0; } diff --git a/installer/web.php b/installer/web.php index da6bbe20..4b8664fb 100644 --- a/installer/web.php +++ b/installer/web.php @@ -20,7 +20,7 @@ if (installer::already_installed()) { $content = render("success.html.php"); } else { - switch ($_GET["step"]) { + switch (@$_GET["step"]) { default: case "welcome": $errors = check_environment(); @@ -108,5 +108,5 @@ function check_environment() { $errors[] = "The mbstring extension is overloading PHP's native string functions. Please disable it."; } - return $errors; + return @$errors; } -- cgit v1.2.3