diff options
Diffstat (limited to 'pkglist.php')
-rwxr-xr-x | pkglist.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkglist.php b/pkglist.php index 65cbfa9..2307fe1 100755 --- a/pkglist.php +++ b/pkglist.php @@ -3,8 +3,7 @@ require_once(dirname(__FILE__).'/shared/include/includes.php'); // USE __DIR__ in 5.3.0 require_once(SHARED.'/config.php'); require_once(SHARED.'/include/dbinit.php'); -$pdo=&$S['pdo']; -$r=$pdo->query('SELECT * FROM `gentoo_profiles`'.(isset($argv[1])?' WHERE `name` LIKE "%'.$argv[1].'%" OR `pkgdir` LIKE "%'.$argv[1].'%"':'')); +$r=query('SELECT * FROM `gentoo_profiles`'.(isset($argv[1])?' WHERE `name` LIKE "%'.$argv[1].'%" OR `pkgdir` LIKE "%'.$argv[1].'%"':'')); while ($p=$r->fetch(PDO::FETCH_ASSOC)) { $p=new sql_gentoo_profile($p); echo ($p->name?$p->name:$p->pkgdir)."\n"; |