From 7eb228b5cbf37ed341e544c11cd782c3347f46df Mon Sep 17 00:00:00 2001 From: Platonides Date: Thu, 9 Jun 2011 19:57:10 +0000 Subject: [PATCH] If this was ever passed an empty string it would spit "PHP Notice: Uninitialized string offset: 0..." --- includes/db/DatabaseMysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/db/DatabaseMysql.php b/includes/db/DatabaseMysql.php index 2b32fd0f87..759d1ac188 100644 --- a/includes/db/DatabaseMysql.php +++ b/includes/db/DatabaseMysql.php @@ -330,7 +330,7 @@ class DatabaseMysql extends DatabaseBase { } public function isQuotedIdentifier( $name ) { - return $name[0] == '`' && substr( $name, -1, 1 ) == '`'; + return strlen($name) && $name[0] == '`' && substr( $name, -1, 1 ) == '`'; } function ping() { -- 2.20.1