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

This commit is contained in:
Hadi Nategh 2013-07-15 09:36:27 +00:00
parent eb7cccf775
commit 4a3563ee65

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
{