projects
/
project/demandbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
bc5ce2a
)
Added default value for fortune 1000 condiiton
author
chandra shekhar
Wed, 18 Apr 2012 06:59:46 +0000 (11:59 +0530)
committer
chandra shekhar
Wed, 18 Apr 2012 06:59:46 +0000 (11:59 +0530)
demandbase_fortune1000/plugins/demandbase_fortune1000_condition.inc
patch
|
blob
|
blame
|
history
diff --git
a/demandbase_fortune1000/plugins/demandbase_fortune1000_condition.inc
b/demandbase_fortune1000/plugins/demandbase_fortune1000_condition.inc
index
7705c80
..
516a18d
100755
(executable)
--- a/
demandbase_fortune1000/plugins/demandbase_fortune1000_condition.inc
+++ b/
demandbase_fortune1000/plugins/demandbase_fortune1000_condition.inc
@@
-65,6
+65,9
@@
class DemandbaseFortune1000Condition extends context_condition {
$demandbase_client_obj = new demandbase_client();
// Include the fortune1000 for matching.
$current_fortune1000 = $demandbase_client_obj->fetch_data(variable_get('demandbase_fortune_1000', 'fortune_1000'));
+ if (!$current_fortune1000) {
+ $current_fortune1000 = 2;
+ }
foreach ($this->get_contexts() as $context) {
$options = $this->fetch_from_context($context, 'values');
if ($demandbase_client_obj->match($current_fortune1000, $options, TRUE)) {