mango r142 - in trunk: lib www



Author: ovitters
Date: Tue May 20 19:53:03 2008
New Revision: 142
URL: http://svn.gnome.org/viewvc/mango?rev=142&view=rev

Log:
Correctly set attributes on the page XML.


Modified:
   trunk/lib/util.php
   trunk/www/update_user.php

Modified: trunk/lib/util.php
==============================================================================
--- trunk/lib/util.php	(original)
+++ trunk/lib/util.php	Tue May 20 19:53:03 2008
@@ -12,8 +12,8 @@
         return false;
 
     # Data should be a base64 encoded string
-    $certificate = base64_decode($data, true);
-    if ($certificate === false)
+    $certificate = base64_decode($data);
+    if ($certificate == $data)
         return false;
 
     if ($check_length) {

Modified: trunk/www/update_user.php
==============================================================================
--- trunk/www/update_user.php	(original)
+++ trunk/www/update_user.php	Tue May 20 19:53:03 2008
@@ -179,11 +179,14 @@
 
 		// Report successes
 		if(is_array($result)) {
-                        if ($inform_changes) $this->user->inform_user($result);
-			foreach($result as $change) {
-				$node = $formnode->appendChild($dom->createElement("change"));
-				$node->setAttribute("id", $change);
-			}
+                    if ($inform_changes) $this->user->inform_user($result);
+
+                    foreach($result as $change) {
+                        $node = $formnode->appendChild($dom->createElement("change"));
+                        foreach ($change as $key=>$val) {
+                            $node->setAttribute($key, $val);
+                        }
+                    }
 		}
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]