1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-28 05:57:05 +01:00

- actually let the user import smilies/icons paks. ;)

- fix TRUNCATE TABLE syntax (mssql does not understand TRUNCATE alone)


git-svn-id: file:///svn/phpbb/trunk@5944 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2006-05-20 14:20:12 +00:00
parent f77c0f0541
commit dbb6b3f6cf
5 changed files with 13 additions and 11 deletions

View File

@@ -1811,8 +1811,7 @@ function cache_moderators()
global $db, $cache, $auth, $phpbb_root_path, $phpEx;
// Clear table
$sql = (SQL_LAYER != 'sqlite') ? 'TRUNCATE ' . MODERATOR_TABLE : 'DELETE FROM ' . MODERATOR_TABLE;
$db->sql_query($sql);
$db->sql_query(((SQL_LAYER != 'sqlite') ? 'TRUNCATE TABLE ' : 'DELETE FROM ') . MODERATOR_TABLE);
// We add moderators who have forum moderator permissions without an explicit ACL_NO setting
$hold_ary = $ug_id_ary = $sql_ary = array();