[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] com web/pecl: $c['selected'] is only set when the package is selected: templates/package-
From:       Ferenc Kovacs <tyrael () php ! net>
Date:       2012-12-30 21:11:57
Message-ID: php-mail-452f16c76578b2be88d469b1ed674f81412844401 () git ! php ! net
[Download RAW message or body]

Commit:    be4b780e74323f4b9b745855b9d7b5daf41abf82
Author:    Ferenc Kovacs <tyra3l@gmail.com>         Sun, 30 Dec 2012 22:11:57 +0100
Parents:   ccec8c4de587003c6cefcfcc06317a20f9bb5139
Branches:  maint

Link:       http://git.php.net/?p=web/pecl.git;a=commitdiff;h=be4b780e74323f4b9b745855b9d7b5daf41abf82

Log:
$c['selected'] is only set when the package is selected

Changed paths:
  M  templates/package-search.html


Diff:
diff --git a/templates/package-search.html b/templates/package-search.html
index de41887..fccf91d 100755
--- a/templates/package-search.html
+++ b/templates/package-search.html
@@ -82,7 +82,7 @@ response_header('Package Search');
             <option value=""></option>
             <?php foreach($category_rows as $c):?>
             <option value="<?php echo $c['id']; ?>"
-            <?php echo $c['selected']; ?>><?php echo $c['name']; ?></option>
+            <?php echo (!empty($c['selected'])?$c['selected']:''); ?>><?php echo $c['name']; ?></option>
             <?php endforeach?>
         </select>


--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic