[pLog-svn] r3826 - in plog/trunk: class/dao templates/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Jul 31 04:25:08 GMT 2006


Author: mark
Date: 2006-07-31 04:24:58 +0000 (Mon, 31 Jul 2006)
New Revision: 3826

Modified:
   plog/trunk/class/dao/articles.class.php
   plog/trunk/templates/admin/editposts.template
Log:
Fixed bug http://bugs.lifetype.net/view.php?id=997

Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php	2006-07-31 03:35:42 UTC (rev 3825)
+++ plog/trunk/class/dao/articles.class.php	2006-07-31 04:24:58 UTC (rev 3826)
@@ -365,7 +365,7 @@
             // the common part "c.id = a.category_id" is needed so that
             // we don't get one article row as many times as the amount of categories
             // we have... due to the sql 'join' operation we're carrying out
-            if( $categoryId == -1 )
+            if( $categoryId <= 0 )
                 $query .= " AND c.id = l.category_id AND a.id = l.article_id ";
             else {
                 if( $categoryId > 0 )

Modified: plog/trunk/templates/admin/editposts.template
===================================================================
--- plog/trunk/templates/admin/editposts.template	2006-07-31 03:35:42 UTC (rev 3825)
+++ plog/trunk/templates/admin/editposts.template	2006-07-31 04:24:58 UTC (rev 3826)
@@ -16,7 +16,7 @@
                     <label for="showCategory">{$locale->tr("category")}</label>
                     <br />
                     <select name="showCategory" id="showCategory">
-                     <option value="-1">{$locale->tr("category_all")}</option>
+                     <option value="0">{$locale->tr("category_all")}</option>
                      {foreach from=$categories item=category}
                      <option value="{$category->getId()}" {if $currentcategory == $category->getId()} selected="selected" {/if}>{$category->getName()}</option>
                      {/foreach}



More information about the pLog-svn mailing list