浏览代码

Fix PHP notice - this function is called statically, so needs to be declared as such. Thanks to Juergen Nickelsen for reporting

pdontthink 10 年之前
父节点
当前提交
408a37ca94
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      trunk/squirrelmail/functions/addressbook.php

+ 1 - 1
trunk/squirrelmail/functions/addressbook.php

@@ -514,7 +514,7 @@ class AddressBook {
      * @param array $row address book entry
      * @return string email address with real name prepended
      */
-    function full_address($row) {
+    static function full_address($row) {
         global $data_dir, $username, $addrsrch_fullname;
 
         // allow multiple addresses in one row (poor person's grouping - bah)