diff options
author | Phil Davis <phil.davis@inf.org> | 2015-01-09 10:04:28 +0545 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-01-09 00:20:39 -0600 |
commit | 0391b39b902b321d07396d53db84ee8e3986c718 (patch) | |
tree | fceb6e360e05a50aee92ba21a4b6121a88189542 | |
parent | ecefba29ec0ad40da862756cf372372c7dacdea9 (diff) | |
download | pfsense-0391b39b902b321d07396d53db84ee8e3986c718.zip pfsense-0391b39b902b321d07396d53db84ee8e3986c718.tar.gz |
PEAR static method call warning
Forum https://forum.pfsense.org/index.php?topic=86478.0
PEAR is used by
IPv6.inc
auth.inc
captiveportal.inc
radius.inc
xmlrpc_client.inc
radius_accounting.inc
radius_authentication.inc
I have just changed this 1 function to "public static"
Also used are:
PEAR::raiseError
PEAR::loadExtension (already has "static function")
Not sure if PEAR::raiseError will throw a similar "static method" call
warning, not game to touch it.
-rw-r--r-- | etc/inc/PEAR.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/PEAR.inc b/etc/inc/PEAR.inc index 6fb91a3..b254139 100644 --- a/etc/inc/PEAR.inc +++ b/etc/inc/PEAR.inc @@ -247,7 +247,7 @@ class PEAR * @access public * @return bool true if parameter is an error */ - function isError($data, $code = null) + public static function isError($data, $code = null) { if (!is_object($data)) { return false; |