From ce916cdff59ae68ef8147158ade6e2230d471899 Mon Sep 17 00:00:00 2001 From: pallo Date: Thu, 30 Mar 2000 21:39:33 +0000 Subject: [PATCH] Improved local backend handling. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@361 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/addressbook.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions/addressbook.php b/functions/addressbook.php index 738be3ff..1bac6c0c 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -62,6 +62,7 @@ var $backends = array(); var $numbackends = 0; var $error = ""; + var $localbackend = 0; // Constructor function. function AddressBook() { @@ -98,6 +99,11 @@ $newback->bnum = $this->numbackends; $this->backends[$this->numbackends] = $newback; + + // Store ID of first local backend added + if($this->localbackend == 0 && $newback->btype == "local") + $this->localbackend = $this->numbackends; + return $this->numbackends; } -- 2.25.1