bug fix: substring is not a PHP function %-)

pull/1520/head
Hauke Altmann 2015-04-17 09:59:28 +02:00
rodzic 00cbc383f5
commit c292d01723
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -153,7 +153,7 @@ function update_structure($verbose, $action, $tables=null, $definition=null) {
} else { } else {
// Drop the index if it isn't present in the definition and index name doesn't start with "local_" // Drop the index if it isn't present in the definition and index name doesn't start with "local_"
foreach ($database[$name]["indexes"] AS $indexname => $fieldnames) foreach ($database[$name]["indexes"] AS $indexname => $fieldnames)
if (!isset($structure["indexes"][$indexname]) && substring($indexname, 0, 5) != 'local_') { if (!isset($structure["indexes"][$indexname]) && substr($indexname, 0, 5) != 'local_') {
$sql2=db_drop_index($indexname); $sql2=db_drop_index($indexname);
if ($sql3 == "") if ($sql3 == "")
$sql3 = "ALTER TABLE `".$name."` ".$sql2; $sql3 = "ALTER TABLE `".$name."` ".$sql2;