[pLog-svn] r3147 - plog/trunk/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Wed Mar 29 10:50:59 GMT 2006
Author: mark
Date: 2006-03-29 10:50:58 +0000 (Wed, 29 Mar 2006)
New Revision: 3147
Modified:
plog/trunk/class/dao/model.class.php
Log:
A bug fix of update(). The problem is:
If the new record == old record, there is nothing to update. The result should be right. But we feed back it as false ...
So, I remove those Affect_Rows checking.
Modified: plog/trunk/class/dao/model.class.php
===================================================================
--- plog/trunk/class/dao/model.class.php 2006-03-29 10:48:33 UTC (rev 3146)
+++ plog/trunk/class/dao/model.class.php 2006-03-29 10:50:58 UTC (rev 3147)
@@ -427,10 +427,7 @@
if( !$result )
return false;
- if( $this->_db->Affected_Rows() == 0 )
- return false;
- else
- return true;
+ return true;
}
/**
More information about the pLog-svn
mailing list