From: Mikael Nordfeldth Date: Sun, 6 Mar 2016 16:31:40 +0000 (+0100) Subject: Declare AdminpanelAction::canAdmin as static, since that's how it's used. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=158b323767e4f5bc87281e027f289b76354a8840;p=quix0rs-gnu-social.git Declare AdminpanelAction::canAdmin as static, since that's how it's used. --- diff --git a/lib/adminpanelaction.php b/lib/adminpanelaction.php index 2ac92cb5c6..a7cb9fc722 100644 --- a/lib/adminpanelaction.php +++ b/lib/adminpanelaction.php @@ -246,7 +246,7 @@ class AdminPanelAction extends Action $this->clientError(_('saveSettings() not implemented.')); } - function canAdmin($name) + static function canAdmin($name) { $isOK = false;