Fix collapsing attributes if none of the attributes to collapse have been set.
break;
}
}
+ if ($empty == 0) {
+ return;
+ }
ksort($attributes);
$unset = $attributes;
$result = '';
$key));
}
}
+
+ /* Check for potential renaming of the object here */
+ $new_info = array_merge($this->_cache, $info);
+ $new_uid = $this->server->generateServerUid(get_class($this),
+ $this->generateId($new_info),
+ $new_info);
+ if ($new_uid != $this->uid) {
+ $this->server->rename($this->uid, $new_uid);
+ $this->uid = $new_uid;
+ }
}
$result = $this->server->save($this->uid, $info, $this->exists());