Permalink
Browse files

User::delete method must return boolean, but there is a case when nul…

…l is returned.

Deleted this case.
  • Loading branch information...
1 parent 6c32b5f commit 055ccba40015fb073e0c65d0c27622ded70ac9d0 @Lezas Lezas committed Feb 13, 2017
Showing with 1 addition and 3 deletions.
  1. +1 −3 source/Application/Model/User.php
@@ -613,9 +613,7 @@ public function delete($sOXID = null)
$this->deleteAdditionally($sOXIDQuoted);
// and leaving all order related information
- $rs = $oDb->execute("delete from oxremark where oxparentid = {$sOXIDQuoted} and oxtype !='o'");
-
- $blDeleted = $rs->EOF;
+ $oDb->execute("delete from oxremark where oxparentid = {$sOXIDQuoted} and oxtype !='o'");
}
return $blDeleted;

0 comments on commit 055ccba

Please sign in to comment.