Changeset 638
- Timestamp:
- 11/21/06 15:50:50 (2 years ago)
- Files:
-
- branches/punbb-1.3-dev/upload/admin/maintenance.php (modified) (2 diffs)
- branches/punbb-1.3-dev/upload/admin/ranks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/punbb-1.3-dev/upload/admin/maintenance.php
r624 r638 54 54 confirm_referrer('admin_maintenance.php'); 55 55 56 $truncate_sql = ($db_type != 'sqlite') ? 'TRUNCATE TABLE ' : 'DELETE FROM '; 56 $truncate_sql = ($db_type != 'sqlite' && $db_type != 'pgsql') ? 'TRUNCATE TABLE ' : 'DELETE FROM '; 57 57 58 $db->query($truncate_sql.$db->prefix.'search_matches') or error('Unable to empty search index match table', __FILE__, __LINE__, $db->error()); 58 59 $db->query($truncate_sql.$db->prefix.'search_words') or error('Unable to empty search index words table', __FILE__, __LINE__, $db->error()); … … 67 68 68 69 case 'pgsql'; 69 $result = $db->query('SELECT setval(\' search_words_id_seq\', 1, false)') or error('Unable to update sequence', __FILE__, __LINE__, $db->error());70 $result = $db->query('SELECT setval(\''.$db->prefix.'search_words_id_seq\', 1, false)') or error('Unable to update sequence', __FILE__, __LINE__, $db->error()); 70 71 } 71 72 } branches/punbb-1.3-dev/upload/admin/ranks.php
r624 r638 82 82 83 83 // Make sure there isn't already a rank with the same min_posts value 84 $result = $db->query('SELECT 1 FROM '.$db->prefix.'ranks WHERE id!='.$id.' &&min_posts='.$min_posts) or error('Unable to fetch rank info', __FILE__, __LINE__, $db->error());84 $result = $db->query('SELECT 1 FROM '.$db->prefix.'ranks WHERE id!='.$id.' AND min_posts='.$min_posts) or error('Unable to fetch rank info', __FILE__, __LINE__, $db->error()); 85 85 if ($db->num_rows($result)) 86 86 message($lang_admin['Same min posts message'].' '.$min_posts.'.');
