summaryrefslogtreecommitdiffstats
path: root/all.php
diff options
context:
space:
mode:
Diffstat (limited to 'all.php')
-rw-r--r--all.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/all.php b/all.php
index 32596d3..cfaa524 100644
--- a/all.php
+++ b/all.php
@@ -49,7 +49,7 @@ $smarty->assign('page_title', 'All packages in Fedora repositories');
/**
* Retrieve packages informations
*
-* @param Object $db A reference to the database
+* @param Object $db A reference to the database
*
* @return array
*/
@@ -61,8 +61,8 @@ function report ($db)
$smarty->assign('repos', $repos);
- if (substr($what,0,1)=='%') {
- $sql=sprintf("SELECT DISTINCT name FROM rpm WHERE SUBSTRING(name,1,1)='%s' ORDER BY name", substr($what,1,1));
+ if (substr($what, 0, 1)=='%') {
+ $sql=sprintf("SELECT DISTINCT name FROM rpm WHERE SUBSTRING(name,1,1)='%s' ORDER BY name", substr($what, 1, 1));
} else {
$sql=sprintf("SELECT DISTINCT name FROM acls WHERE owner='%s' ORDER BY name", $what);
}
@@ -103,7 +103,7 @@ function report ($db)
$package['owners'] = $owners;
$versions = null;
- foreach($repos as $repomain) {
+ foreach ($repos as $repomain) {
$display="";
$class="";
foreach ($repomain as $repo) {