]> git.mxchange.org Git - friendica.git/commitdiff
bug fix: substring is not a PHP function %-)
authorHauke Altmann <hauke.altmann@berlin.msf.org>
Fri, 17 Apr 2015 07:59:28 +0000 (09:59 +0200)
committerHauke Altmann <hauke.altmann@berlin.msf.org>
Fri, 17 Apr 2015 07:59:28 +0000 (09:59 +0200)
include/dbstructure.php

index 012bb6f0bc857efa225ad0d44036f0a9272e9ce0..9faede0ca1aa38f845404e6d46a7024cd63ccc7f 100644 (file)
@@ -153,7 +153,7 @@ function update_structure($verbose, $action, $tables=null, $definition=null) {
                } else {
                        // 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)
-                               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);
                                        if ($sql3 == "")
                                                $sql3 = "ALTER TABLE `".$name."` ".$sql2;