summaryrefslogtreecommitdiffstats
path: root/pkgdb-ajax.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-12-16 16:52:32 +0100
committerRemi Collet <remi@remirepo.net>2020-12-16 16:52:32 +0100
commitb1ab0e6891f5ff0db6140a0846eb7d4c9af69f42 (patch)
tree8b4821ede32fdabcf67f0bdccaae8f49751178d2 /pkgdb-ajax.php
parent8a3a457f7110ee83a163d10f8c2abe77447e45c9 (diff)
avoid warnings, pkgdb is dead
Diffstat (limited to 'pkgdb-ajax.php')
-rw-r--r--pkgdb-ajax.php4
1 files changed, 2 insertions, 2 deletions
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
+?>