1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Merge pull request #74 from joshuaruesweg/master

fix php notice "array to string conversion"
This commit is contained in:
Tim Düsterhus 2014-05-20 20:40:16 +02:00
commit 28b46263d3

View File

@ -94,7 +94,7 @@ public function checkPermission() {
$ph = new \chat\system\permission\PermissionHandler();
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 {
if (!WCF::getSession()->getPermission('mod.chat.canG'.static::SUSPENSION_TYPE)) {