[art-web] [views/backgrounds] don't use isset() now that search_text is initialised



commit ffb0ef75410a129fb888aae30e7bfe1e1fd26ce6
Author: Thomas Wood <thos gnome org>
Date:   Sat Oct 31 23:43:59 2009 +0000

    [views/backgrounds] don't use isset() now that search_text is initialised
    
    $search_text is always initialised, so the isset() check is redundant.

 views/backgrounds.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/views/backgrounds.php b/views/backgrounds.php
index 927e641..1a58f83 100644
--- a/views/backgrounds.php
+++ b/views/backgrounds.php
@@ -42,7 +42,7 @@ if (!$view_data)
   <li><a href="/backgrounds/other">Other</a></li>
   </ul>
   Search for backgrounds:
-  <?php if ($total_backgrounds < 1 && isset ($search_text)) echo "<p>No search results for &quot;$search_text&quot;</p>" ?>
+  <?php if ($total_backgrounds < 1 && $search_text) echo "<p>No search results for &quot;$search_text&quot;</p>" ?>
   <ul>
   <form method="get" action="/backgrounds/search">
     <input name="text" type="text" value="<?php echo $search_text?>">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]