]> git.mjollnir.org Git - moodle.git/commitdiff
xmldb: typos in generated code.
authortjhunt <tjhunt>
Tue, 18 Nov 2008 07:36:02 +0000 (07:36 +0000)
committertjhunt <tjhunt>
Tue, 18 Nov 2008 07:36:02 +0000 (07:36 +0000)
admin/xmldb/actions/view_table_php/view_table_php.class.php

index b6d5c7daf7e431cbf14de0a73a67e3a7247aa744..8626a36ba21b8eab64c73a0211f0c9589cc1c780 100644 (file)
@@ -919,7 +919,7 @@ class view_table_php extends XMLDBAction {
     /// Launch the proper DDL
         $result .= XMLDB_LINEFEED;
         $result .= '    /// Conditionally launch add index ' . $index->getName() . XMLDB_LINEFEED;
-        $result .= '        if (!$dbman->index_exists($table, $index) {' . XMLDB_LINEFEED;
+        $result .= '        if (!$dbman->index_exists($table, $index)) {' . XMLDB_LINEFEED;
         $result .= '            $dbman->add_index($table, $index);' . XMLDB_LINEFEED;
         $result .= '        }' . XMLDB_LINEFEED;
 
@@ -967,7 +967,7 @@ class view_table_php extends XMLDBAction {
     /// Launch the proper DDL
         $result .= XMLDB_LINEFEED;
         $result .= '    /// Conditionally launch drop index ' . $index->getName() . XMLDB_LINEFEED;
-        $result .= '        if ($dbman->index_exists($table, $index) {' . XMLDB_LINEFEED;
+        $result .= '        if ($dbman->index_exists($table, $index)) {' . XMLDB_LINEFEED;
         $result .= '            $dbman->drop_index($table, $index);' . XMLDB_LINEFEED;
         $result .= '        }' . XMLDB_LINEFEED;