diff --git a/addressbook/inc/hook_deleteaccount.inc.php b/addressbook/inc/hook_admin_deleteaccount.inc.php old mode 100644 new mode 100755 similarity index 92% rename from addressbook/inc/hook_deleteaccount.inc.php rename to addressbook/inc/hook_admin_deleteaccount.inc.php index c4e542aac3..b8f8080091 --- a/addressbook/inc/hook_deleteaccount.inc.php +++ b/addressbook/inc/hook_admin_deleteaccount.inc.php @@ -9,10 +9,13 @@ * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ - /* $Id$ */ -{ + /* $Id$ */ // Delete all records for a user + if (floor($PHP_VERSION ) == 4) + { + global $accountid; + } + $contacts = CreateObject('phpgwapi.contacts'); $contacts->delete_all($accountid); -} ?>