NOMDL workshop: fixing correct arguments order after recent Petr's play with property_exists()

This commit is contained in:
David Mudrak
2010-09-17 23:43:25 +00:00
parent 8af229fe37
commit eef46586e9
+1 -1
View File
@@ -170,7 +170,7 @@ class workshop {
*/
public function __construct(stdclass $dbrecord, stdclass $cm, stdclass $course, stdclass $context=null) {
foreach ($dbrecord as $field => $value) {
if (property_exists($field, 'workshop')) {
if (property_exists('workshop', $field)) {
$this->{$field} = $value;
}
}