fix for bug report "[ 1832021 ] Accessing FTS page on pg < 8.3"
authorioguix <ioguix>
Thu, 31 Jan 2008 22:03:30 +0000 (22:03 +0000)
committerioguix <ioguix>
Thu, 31 Jan 2008 22:03:30 +0000 (22:03 +0000)
classes/Misc.php

index 6cfa9602968ac25398d1c0ced5e75d928eb4dee2..6be7e6d2c56f40dc3bfd93c66e86abb918517270 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.167 2008/01/09 00:19:10 ioguix Exp $
+        * $Id: Misc.php,v 1.168 2008/01/31 22:03:30 ioguix Exp $
         */
 
        class Misc {
                                                        'title' => $lang['strfulltext'],
                                                        'url'   => 'fulltext.php',
                                                        'urlvars' => array('subject' => 'database'),
-                                                       'hide'  => !$data->hasFTS(),
                                                        'help'  => 'PUT_DOC_LINK_HERE',
                                                        'tree'  => true,
                                                        'icon'  => 'Fts',
                                                        'icon'  => 'Export',
                                                ),
                                        );
+                                       if (!$data->hasFTS()) unset($tabs['fulltext']);
+                                       if (!$data->hasSchemas()) unset($tabs['schemas']);
                                        return $tabs;
 
                                case 'schema':