[midgard-commits] r25335 - branches/ragnaroek/midgard/apis/php5

indeyets midgard-commits at lists.midgard-project.org
Fri Mar 19 16:52:48 CET 2010


Author: indeyets
Date: Fri Mar 19 16:52:48 2010
New Revision: 25335
URL: http://trac.midgard-project.org/changeset/25335

Log:
update sitegroup on change. fixes #1639

Modified:
   branches/ragnaroek/midgard/apis/php5/php_midgard_connection.c

Modified: branches/ragnaroek/midgard/apis/php5/php_midgard_connection.c
==============================================================================
--- branches/ragnaroek/midgard/apis/php5/php_midgard_connection.c	(original)
+++ branches/ragnaroek/midgard/apis/php5/php_midgard_connection.c	Fri Mar 19 16:52:48 2010
@@ -335,6 +335,13 @@
 
 	rv = midgard_connection_set_sitegroup(mgd, (const gchar *)name);
 
+	{
+		zval **_midgard = __get_midgard_ptr();
+		zval *sgid;
+		ZVAL_LONG(sgid, mgd_sitegroup(mgd_handle()));
+		zend_hash_update(Z_ARRVAL_PP(_midgard), "sitegroup", sizeof("sitegroup"), &sgid, sizeof(zval *), NULL);
+	}
+
 	RETURN_BOOL(rv);
 }
 


More information about the midgard-commits mailing list