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

fix php notice "array to string conversion"

This commit is contained in:
Joshua Rüsweg 2014-05-20 19:48:26 +02:00
parent b8bc642714
commit 196f4916bb

View File

@ -94,7 +94,7 @@ public function checkPermission() {
$ph = new \chat\system\permission\PermissionHandler(); $ph = new \chat\system\permission\PermissionHandler();
if (static::IS_GLOBAL) { if (static::IS_GLOBAL) {
WCF::getSession()->checkPermissions((array) 'mod.chat.canG'.static::SUSPENSION_TYPE); WCF::getSession()->checkPermissions(array('mod.chat.canG'.static::SUSPENSION_TYPE));
} }
else { else {
if (!WCF::getSession()->getPermission('mod.chat.canG'.static::SUSPENSION_TYPE)) { if (!WCF::getSession()->getPermission('mod.chat.canG'.static::SUSPENSION_TYPE)) {