use ?is_null? function instead of ?empty? due to backwards compatibility

This commit is contained in:
coderkun 2014-01-29 15:40:49 +01:00
commit b7a0d594d8
2 changed files with 5 additions and 5 deletions

View file

@ -123,7 +123,7 @@
if($this->request->getRequestMethod() == 'POST')
{
// Save changes
if(!empty($this->request->getPostParam('save')))
if(!is_null($this->request->getPostParam('save')))
{
// Edit seminary
$this->Seminaries->editSeminary(
@ -161,7 +161,7 @@
if($this->request->getRequestMethod() == 'POST')
{
// Check confirmation
if(!empty($this->request->getPostParam('delete')))
if(!is_null($this->request->getPostParam('delete')))
{
// Delete seminary
$this->Seminaries->deleteSeminary($seminary['id']);