Fix PHP warnings (return by ref, protected/private)
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 12 Feb 2010 23:12:26 +0000 (00:12 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 13 Feb 2010 23:34:03 +0000 (00:34 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
core
include/ufbuilder.inc.php
include/userset.inc.php

diff --git a/core b/core
index 24bb393..54d6549 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 24bb393609c4e87e8578ddaca906c32d99a299bf
+Subproject commit 54d6549cad8056b1f0656b2d8fc83a853631758e
index e76b830..92e0841 100644 (file)
@@ -87,7 +87,7 @@ class UserFilterBuilder
     /** Returns the built UFC
      * @return The UFC, or PFC_False() if an error happened
      */
-    public function &getUFC()
+    public function getUFC()
     {
         $this->buildUFC();
         if ($this->valid) {
index 92a5531..0aefe1f 100644 (file)
@@ -49,7 +49,6 @@ class SearchSet extends ProfileSet
 {
     public  $advanced = false;
     private $score    = null;
-    private $conds    = null;
     private $quick    = false;
 
     public function __construct($quick = false, $no_search = false, PlFilterCondition $cond = null)
@@ -90,7 +89,8 @@ class SearchSet extends ProfileSet
             return;
         }
 
-        $this->conds->addChild($ufb->getUFC());
+        $ufc = $ufb->getUFC();
+        $this->conds->addChild($ufc);
 
         $orders = $ufb->getOrders();
         $orders[] = new UFO_Promo(UserFilter::DISPLAY, true);