[ghelda-devel] [16] Really ensure that dates are not updated for nothing

[ Thread Index | Date Index | More lists.tuxfamily.org/ghelda-devel Archives ]


Revision: 16
Author:   odyx
Date:     2009-04-01 13:38:08 +0200 (Wed, 01 Apr 2009)

Log Message:
-----------
Really ensure that dates are not updated for nothing

Modified Paths:
--------------
    trunk/plugins/People.php


Modified: trunk/plugins/People.php
===================================================================
--- trunk/plugins/People.php	2009-04-01 11:23:27 UTC (rev 15)
+++ trunk/plugins/People.php	2009-04-01 11:38:08 UTC (rev 16)
@@ -227,7 +227,11 @@
 						$newError = true;
 						continue;
 					}
+					// Re-check for the dates…
+					elseif(array_key_exists($fieldName.'_old',$_POST) && $fieldContent == $_POST[$fieldName.'_old'])
+						continue;
 				}
+				}
 				$fieldsContents[$fieldName_] = $fieldContent;
 				$formattedFields .= "`$fieldName_` = '".$fieldContent."', ";
 			}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/