summaryrefslogtreecommitdiffstats
path: root/pts-core
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-19 13:22:23 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-19 13:22:23 -0500
commit0552148d2942ead385c02c17f72b03236d0b7b4a (patch)
treeac6554049611fef064a9be72407f1a577fce194b /pts-core
parentabe07500ebddda9130a095d042630b994aea6609 (diff)
downloadphoronix-test-suite-upstream-0552148d2942ead385c02c17f72b03236d0b7b4a.tar.gz
phoronix-test-suite-upstream-0552148d2942ead385c02c17f72b03236d0b7b4a.tar.xz
phoronix-test-suite-upstream-0552148d2942ead385c02c17f72b03236d0b7b4a.zip
pts-core: Allow pts_set_assignment() to set multiple assignments with
same value
Diffstat (limited to 'pts-core')
-rw-r--r--pts-core/functions/pts-functions.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index 33e795e..9c0aea3 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -765,7 +765,15 @@ function pts_set_assignment_once($assignment, $value)
}
function pts_set_assignment($assignment, $value)
{
- pts_assignment("SET", $assignment, $value);
+ if(!is_array($assignment))
+ {
+ $assignment = array($assignment);
+ }
+
+ foreach($assignment as $this_assignment)
+ {
+ pts_assignment("SET", $this_assignment, $value);
+ }
}
function pts_read_assignment($assignment)
{