Fix displaying wrong number of deleted logs from accesslog in the message bar.

This commit is contained in:
Hadi Nategh 2013-07-15 09:30:09 +00:00
parent e90a6e1d42
commit 014d5cd416

View File

@ -181,9 +181,10 @@ class admin_accesslog
unset($content['delete']);
$sessionid = $content['nm']['rows']['selected'];
}
if ($sessionid && $this->so->delete(array('sessionid' => $sessionid)))
$del_msg= $this->so->delete(array('sessionid' => $sessionid));
if ($sessionid && $del_msg)
{
$msg = lang('%1 log entries deleted.',1);
$msg = lang('%1 log entries deleted.',$del_msg);
}
else
{