summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBojan Zivanovic2013-07-25 08:48:05 (GMT)
committer Bojan Zivanovic2013-07-25 08:48:05 (GMT)
commiteecd41835de9729d3d001dfbb26fc8c6d6f05d69 (patch)
tree52a7ad318b0425e8a77c5066a891e5174edfd79a
parentb96ffdea9eaf229a61fb0897b7238fa58cd5aada (diff)
Fix another possible notice.7.x-2.0-alpha1
-rw-r--r--commerce_file.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/commerce_file.module b/commerce_file.module
index 953ad2e..9fa56dd 100644
--- a/commerce_file.module
+++ b/commerce_file.module
@@ -285,7 +285,7 @@ function commerce_file_get_license($op, $file, $account = NULL) {
->propertyCondition('uid', $account->uid)
->entityOrderby('entity_id', 'ASC');
$result = $query->execute();
- if ($result['commerce_license']) {
+ if (!empty($result['commerce_license'])) {
$license_ids = array_keys($result['commerce_license']);
$loaded_licenses = entity_load('commerce_license', $license_ids);
// Go through all loaded licenses and check their eligibility.