1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Merge branch '3.0.x'

This commit is contained in:
Tim Düsterhus 2014-10-18 19:38:53 +02:00
commit 7871f022e1
2 changed files with 5 additions and 10 deletions

View File

@ -69,16 +69,12 @@ public function prune() {
WHERE WHERE
permanent = ? permanent = ?
AND roomID NOT IN ( AND roomID NOT IN (
SELECT SELECT chatRoomID
fieldValue AS roomID FROM wcf".WCF_N."_user
FROM WHERE chatRoomID IS NOT NULL
wcf".WCF_N."_user_storage )";
WHERE
field = ?
AND fieldValue IS NOT NULL
)";
$stmt = \wcf\system\WCF::getDB()->prepareStatement($sql); $stmt = \wcf\system\WCF::getDB()->prepareStatement($sql);
$stmt->execute(array(0, 'roomID')); $stmt->execute(array(0));
$objectIDs = array(); $objectIDs = array();
while ($objectID = $stmt->fetchColumn()) $objectIDs[] = $objectID; while ($objectID = $stmt->fetchColumn()) $objectIDs[] = $objectID;

View File

@ -1,7 +1,6 @@
<?php <?php
namespace chat\util; namespace chat\util;
use \wcf\data\package\PackageCache; use \wcf\data\package\PackageCache;
use \wcf\system\user\storage\UserStorageHandler;
use \wcf\system\WCF; use \wcf\system\WCF;
/** /**