From b1ab0e6891f5ff0db6140a0846eb7d4c9af69f42 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Dec 2020 16:52:32 +0100 Subject: avoid warnings, pkgdb is dead --- pkgdb-ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgdb-ajax.php') diff --git a/pkgdb-ajax.php b/pkgdb-ajax.php index 82eb5b7..cddaea5 100644 --- a/pkgdb-ajax.php +++ b/pkgdb-ajax.php @@ -44,7 +44,7 @@ if ( !isset($name) || !$name ) { $fedcli = new FedoraPkgdb(); $fedpkg = $fedcli->getPackageInfo($name); if ( $fedpkg === false ) { - $fedpkg = array('error' => 'Unknown package'); + $fedpkg = array(/*'error' => 'Unknown package'*/); } else { //let's clean all little to avoid heavy json foreach ( array_keys($fedpkg) as $k ) { @@ -69,4 +69,4 @@ if ( !isset($name) || !$name ) { } } echo json_encode($fedpkg); -?> \ No newline at end of file +?> -- cgit