cvs: docweb /include lib_phpt_generator.inc.php

[email protected] ("Etienne Kneuss")
Newsgroups php.doc.web
Message-ID <cvscolder1173947522@cvsserver>
colder		Thu Mar 15 08:32:02 2007 UTC

  Modified files:              
    /docweb/include	lib_phpt_generator.inc.php 
  Log:
  Fix condition, thanks philip for the hint
  
http://cvs.php.net/viewvc.cgi/docweb/include/lib_phpt_generator.inc.php?r1=1.5&r2=1.6&diff_format=u
Index: docweb/include/lib_phpt_generator.inc.php
diff -u docweb/include/lib_phpt_generator.inc.php:1.5 docweb/include/lib_phpt_generator.inc.php:1.6
--- docweb/include/lib_phpt_generator.inc.php:1.5	Sun Dec  3 09:09:45 2006
+++ docweb/include/lib_phpt_generator.inc.php	Thu Mar 15 08:32:02 2007
@@ -15,7 +15,7 @@
 +----------------------------------------------------------------------+
 | Authors: Etienne Kneuss <[email protected]>                             |
 +----------------------------------------------------------------------+
-$Id: lib_phpt_generator.inc.php,v 1.5 2006/12/03 09:09:45 colder Exp $
+$Id: lib_phpt_generator.inc.php,v 1.6 2007/03/15 08:32:02 colder Exp $
 */
 /**
  * Parameters
@@ -355,7 +355,7 @@
                
     $results = sqlite_query($sqlite, $sql_query);
     
-    if (count($ids) === 1) {
+    if (sqlite_num_rows($results) === 1) {
         phpt_download(sqlite_fetch_array($results, SQLITE_ASSOC));
     } else {
         $flags_verbose = array();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.