* Got bored and copied all the validate.php and define() stuff to 1.1
[squirrelmail.git] / functions / addressbook.php
index fa53c7e30c5e591f678331c921b1de314ec45640..26b6aed3a8c71a1f0f17db38c4ace99f4eb5959a 100644 (file)
@@ -8,7 +8,9 @@
    **  $Id$
    **/
     
-   $addressbook_php = true;
+   if (defined ('addressbook_php'))
+      return; 
+   define ('addressbook_php', true); 
 
    // Include backends here.
    include('../functions/abook_local_file.php');
         $ret = array();
         for($i = 1 ; $i <= $this->numbackends ; $i++) {
            if(empty($type) || $type == $this->backends[$i]->btype) {
-              array_push($ret, &$this->backends[$i]);
+              $ret[] = &$this->backends[$i];
            }
         }
         return $ret;