diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-13 22:34:54 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-13 22:34:54 +0000 |
commit | baa220186e176191e34383b5871746cefe6e5c8e (patch) | |
tree | 9e520064d24ddee170e6041633e9b1c78871ee7e | |
parent | ce4a8224d84eb0bea7a52bc670b5f4d8feb59138 (diff) |
Suppress some warnings
-rw-r--r-- | installer/index.php | 2 | ||||
-rw-r--r-- | installer/installer.php | 2 | ||||
-rw-r--r-- | installer/web.php | 4 |
3 files changed, 4 insertions, 4 deletions
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 <a href=\"http://php.net/mbstring\">mbstring extension</a> is overloading PHP's native string functions. Please disable it."; } - return $errors; + return @$errors; } |