From: Janusz Dobrowolski Date: Thu, 21 Apr 2011 13:40:49 +0000 (+0200) Subject: Fixed php4 compatibility. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=c664f69e516c5fff7166f903f289186e7d28c023;p=textcart.git Fixed php4 compatibility. --- diff --git a/admin/db/maintenance_db.inc b/admin/db/maintenance_db.inc index 4c1c623..2823ed7 100644 --- a/admin/db/maintenance_db.inc +++ b/admin/db/maintenance_db.inc @@ -301,8 +301,7 @@ function db_import($filename, $connection, $force=true) { // check if line begins with one of allowed queries foreach($allowed_commands as $cmd => $table) { -// if (strtolower(substr($line, 0, strlen($cmd))) == $cmd) - if (stripos($line, $cmd) === 0) + if (strtolower(substr($line, 0, strlen($cmd))) == $cmd) { if ($cmd == 'delimiter') { $delimiter = trim(substr($line, 10));