From: Janusz Dobrowolski Date: Thu, 21 Apr 2011 13:40:49 +0000 (+0200) Subject: Fixed php4 compatibility. X-Git-Tag: 2.3-final~691 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1c1d6b39a0425ae2d6ae8cc98490027b7810c37d;p=fa-stable.git Fixed php4 compatibility. --- diff --git a/admin/db/maintenance_db.inc b/admin/db/maintenance_db.inc index 4c1c623d..2823ed7c 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));