use ?is_null? function instead of ?empty? due to backwards compatibility
This commit is contained in:
parent
b7c858c762
commit
b7a0d594d8
2 changed files with 5 additions and 5 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue