CMS MADE SIMPLE FORGE

ModuleRepository

 

[#12566] lib\class.mr_dbrecord.php: is_filename_ignored() fails

avatar
Created By: Ruud van der Velden (ruudvdvelden)
Date Submitted: Sun Oct 16 05:36:13 -0400 2022

Assigned To:
Version: None
CMSMS Version: None
Severity: None
Resolution: None
State: Open
Summary:
lib\class.mr_dbrecord.php: is_filename_ignored() fails
Detailed Description:
lib\class.mr_dbrecord.php line 180:

$query = 'SELECT ignored_count,ignored_since FROM
'.cms_db_prefix().'module_modulerepository_ignore WHERE filename = ?';
$tmp = $db->GetOne($query,array($filename));
if( is_array($tmp) && count($tmp) ) {

GetOne() only returns a single column/value which is not an array. An array is
expected in the 3rd line.

Suggested change:
$tmp = $db->GetOne($query,array($filename));  --> $tmp =
$db->GetRow($query,array($filename));



History