diff --git a/includes/uuid.inc b/includes/uuid.inc
index b0567d3..6e4c42c 100644
--- a/includes/uuid.inc
+++ b/includes/uuid.inc
@@ -25,7 +25,8 @@ function _ctools_uuid_generate_com() {
  * Generates an universally unique identifier using the PECL extension.
  */
 function _ctools_uuid_generate_pecl() {
-  return uuid_create(UUID_TYPE_DEFAULT);
+  $uuid_type = UUID_TYPE_DEFAULT;
+  return uuid_create($uuid_type);
 }
 
 /**
