Skip to content

Commit

Permalink
Scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Oct 22, 2021
1 parent f51dc3c commit b97f586
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@

$id_field = Request::getString('cid', '');

if ($utility::cloneRecord('adslight_categories', 'cid', (int)$id_field)) {
if (null !== $utility::cloneRecord('adslight_categories', 'cid', (int)$id_field)) {
redirect_header('categories.php', 3, AM_ADSLIGHT_CLONED_OK);
} else {
redirect_header('categories.php', 3, AM_ADSLIGHT_CLONED_FAILED);
Expand Down
3 changes: 3 additions & 0 deletions class/Common/VersionChecks.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
* @author mamba <[email protected]>
*/

use Xmf\Module\Helper;

trait VersionChecks
{
/**
Expand Down

0 comments on commit b97f586

Please sign in to comment.