[geeklog-cvs] geeklog-1.3/system/databases mysql.class.php,1.13,1.14

blaine at geeklog.net blaine at geeklog.net
Mon Jan 20 22:34:05 EST 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system/databases
In directory internal.geeklog.net:/tmp/cvs-serv7392/system/databases

Modified Files:
	mysql.class.php 
Log Message:
Checks in dbdelete, dbchange, dbcount and dbcopy for a passed $value of 0 were not sufficient. If the parameter was 0 - it was assuming it was empty.

Index: mysql.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/databases/mysql.class.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** mysql.class.php	26 Jun 2002 14:54:45 -0000	1.13
--- mysql.class.php	21 Jan 2003 03:34:02 -0000	1.14
***************
*** 304,308 ****
          } else {
              // just regular string values, build sql
!             if (!empty($id) && !empty($value)) {
                  $sql .= " WHERE $id = '$value'";
              }
--- 304,308 ----
          } else {
              // just regular string values, build sql
!             if (!empty($id) && ( isset($value) || $value != "")) { 
                  $sql .= " WHERE $id = '$value'";
              }
***************
*** 365,369 ****
          } else {
              // These are regular strings, build sql
!             if (!empty($id) && !empty($value)) {
                  $sql .= " WHERE $id = '$value'";
              }
--- 365,369 ----
          } else {
              // These are regular strings, build sql
!             if (!empty($id) && ( isset($value) || $value != "")) { 
                  $sql .= " WHERE $id = '$value'";
              }
***************
*** 421,425 ****
              }
          } else {
!             if (!empty($id) && !empty($value)) {
                  $sql .= " WHERE $id = '$value'";
              }
--- 421,425 ----
              }
          } else {
!             if (!empty($id) && ( isset($value) || $value != "")) { 
                  $sql .= " WHERE $id = '$value'";
              }
***************
*** 482,486 ****
              }
          } else {
!             if (!empty($id) && !empty($value)) {
                  $sql .= " WHERE $id = '$value'";
              }
--- 482,486 ----
              }
          } else {
!             if (!empty($id) && ( isset($value) || $value != "")) { 
                  $sql .= " WHERE $id = '$value'";
              }





More information about the geeklog-cvs mailing list