diff options
-rw-r--r-- | rpminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -399,7 +399,7 @@ PHP_FUNCTION(rpmdbsearch) di = rpmdbInitIterator(db, RPMDBI_PACKAGES, NULL, 0); /* add criterion */ if (di) { - if (rpmdbSetIteratorRE(di, crit, mode, name)) { + if (rpmdbSetIteratorRE(di, crit, (mode<0 ? RPMMIRE_DEFAULT : mode), name)) { php_error_docref(NULL, E_WARNING, "Can't set filter"); rpmtsCloseDB(ts); RETURN_FALSE; |