Skip to content

Instantly share code, notes, and snippets.

@sevein
Created April 20, 2011 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sevein/931604 to your computer and use it in GitHub Desktop.
Save sevein/931604 to your computer and use it in GitHub Desktop.
cast $value as an array
Index: lib/model/QubitInformationObject.php
===================================================================
--- lib/model/QubitInformationObject.php (revision 9051)
+++ lib/model/QubitInformationObject.php (working copy)
@@ -127,7 +127,7 @@
}
}
- $this->values[$name]->__set('value', serialize($value), $options + array('sourceCulture' => true));
+ $this->values[$name]->__set('value', serialize((array)$value), $options + array('sourceCulture' => true));
return $this;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment