Explicit typecast since values may not be text.

This commit is contained in:
Andrew McMillan committed 2010-03-21 22:01:09 +13:00
1 parent cc244e0c5d
commit c62dd43a30
1 file changed
+1 -1
+1 -1
View File
@@ -199,7 +199,7 @@ foreach( $setprops AS $k => $setting ) {
* If we don't have any special processing for the property, we just store it verbatim (which will be an XML fragment).
*/
default:
$qry->QDo('SELECT set_dav_property( :dav_name, :user_no, :tag, :value)',
$qry->QDo('SELECT set_dav_property( :dav_name, :user_no, :tag::text, :value::text)',
array( ':dav_name' => $dav_resource->dav_name(), ':user_no' => $request->user_no, ':tag' => $tag, ':value' => $content) );
$success[$tag] = 1;
break;