Fatal error: Call to undefined function: array2object fixed using the method describe here: http://drupal.org/node/47374

cvs diff -u contextlinks.module
Index: contextlinks.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/contextlinks/contextlinks.module,v
retrieving revision 1.8
diff -u -r1.8 contextlinks.module
--- contextlinks.module 29 Nov 2005 17:49:54 -0000 1.8
+++ contextlinks.module 20 Mar 2006 17:35:32 -0000
@@ -479,7 +479,7 @@
* A string containing the HTML-formatted form.
*/
function _contextlinks_admin_form($in_cid = 0) {
- $the_class = array2object($_POST['edit']);
+ $the_class = (object) $_POST['edit'];

if (intval($in_cid)) {
$the_class = db_fetch_object(db_query("SELECT cc.* FROM {contextlinks_class} cc WHERE cc.cid = %d", intval($in_cid)));

Comments

jhriggs’s picture

Version: master » 4.7.x-1.x-dev
Status: Needs review » Fixed

This was fixed by a major update committed for version 4.7 yesterday.

Anonymous’s picture

Status: Fixed » Closed (fixed)