diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-19 13:22:23 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-19 13:22:23 -0500 |
commit | 0552148d2942ead385c02c17f72b03236d0b7b4a (patch) | |
tree | ac6554049611fef064a9be72407f1a577fce194b /pts-core | |
parent | abe07500ebddda9130a095d042630b994aea6609 (diff) | |
download | phoronix-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.php | 10 |
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) { |