Commit f3325ce6 authored by canyonknight's avatar canyonknight Committed by Lukas Fleischer
Browse files Fix blacklisting functionality

An array that contains whether the package is blacklisted is
being improperly used for a comparison. Use fetchColumn() to
avoid the array completely and compare a value directly.

Regression with e171f6f3

Fixes FS#31867

Signed-off-by: default avatarcanyonknight <>
Signed-off-by: default avatarLukas Fleischer <>
parent 24a84528
......@@ -428,7 +428,7 @@ function pkgname_is_blacklisted($name, $dbh=NULL) {
$result = $dbh->query($q);
if (!$result) return false;
return ($result->fetch(PDO::FETCH_NUM) > 0);
return ($result->fetchColumn() > 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment