diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-12-09 21:56:03 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-12-09 21:56:03 +0100 |
commit | a3cb04013e8cc527c88c94045e9370e8f21d2be2 (patch) | |
tree | d6bbb791a203897b0ca678a5c12040dc7618152f /lib/vobject.php | |
parent | 2e951c0ce58f784ac442c4fd391d1b5d407e8f35 (diff) | |
download | nextcloud-server-a3cb04013e8cc527c88c94045e9370e8f21d2be2.tar.gz nextcloud-server-a3cb04013e8cc527c88c94045e9370e8f21d2be2.zip |
Update OC_VObject
Diffstat (limited to 'lib/vobject.php')
-rw-r--r-- | lib/vobject.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vobject.php b/lib/vobject.php index 5a76cfd2d43..e3479fc6d36 100644 --- a/lib/vobject.php +++ b/lib/vobject.php @@ -48,6 +48,7 @@ class OC_VObject{ } return $vobject; } catch (Exception $e) { + OC_Log::write('vobject', $e->getMessage(), OC_Log::ERROR); return null; } } @@ -132,6 +133,7 @@ class OC_VObject{ public function setString($name, $string){ if ($string != ''){ + $string = strtr($string, array("\r\n"=>"\n")); $this->vobject->__set($name, $string); }else{ $this->vobject->__unset($name); @@ -195,6 +197,10 @@ class OC_VObject{ return $this->vobject->__unset($name); } + public function __isset($name){ + return $this->vobject->__isset($name); + } + public function __call($function,$arguments){ return call_user_func_array(array($this->vobject, $function), $arguments); } |