summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-horde-Horde-Support-uuid.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/php-horde-Horde-Support-uuid.patch b/php-horde-Horde-Support-uuid.patch
index 0cfc163..09974d7 100644
--- a/php-horde-Horde-Support-uuid.patch
+++ b/php-horde-Horde-Support-uuid.patch
@@ -11,7 +11,7 @@ diff -up Horde_Support-2.0.0/lib/Horde/Support/Uuid.php.old Horde_Support-2.0.0/
- } else {
+ if (function_exists("uuid_export")) {
+ // UUID extension from http://www.ossp.org/pkg/lib/uuid/
-+ if (!uuid_create($ctx) && !uuid_make($ctx, UUID_MAKE_V4) && !uuid_export($ctx, UUID_FMT_STR, $str)) {
++ if (uuid_create($ctx)==UUID_RC_OK && uuid_make($ctx, UUID_MAKE_V4)==UUID_RC_OK && uuid_export($ctx, UUID_FMT_STR, $str)==UUID_RC_OK) {
+ $this->_uuid = $str;
+ uuid_destroy($ctx);
+ }