fix not working delete in edit mode

This commit is contained in:
Cornelius Weiß 2006-12-02 11:47:34 +00:00
parent e800b75362
commit 8c86a244c9

View File

@ -964,7 +964,7 @@ class uicontacts extends bocontacts
break; break;
case 'delete': case 'delete':
if($this->delete($content)) if($this->action('delete',array($content['id'])))
{ {
echo "<html><body><script>var referer = opener.location; opener.location.href = referer+(referer.search?'&':'?')+'msg=". echo "<html><body><script>var referer = opener.location; opener.location.href = referer+(referer.search?'&':'?')+'msg=".
addslashes(urlencode(lang('Contact deleted')))."';window.close();</script></body></html>\n"; addslashes(urlencode(lang('Contact deleted')))."';window.close();</script></body></html>\n";