MDL-51025 tool_lp: Frameworks can be created on a category level

This commit is contained in:
Frederic Massart
2016-04-18 10:58:33 +08:00
parent 4511b7d694
commit 2de75345bb
31 changed files with 523 additions and 409 deletions
+1 -3
View File
@@ -264,9 +264,7 @@ abstract class persistent {
public function get_records_select($select, $params = null, $sort = '', $fields = '*', $limitfrom = 0, $limitnum = 0) {
global $DB;
if (!$records = $DB->get_records_select($this->get_table_name(), $select, $params, $sort, $fields, $limitfrom, $limitnum)) {
return false;
}
$records = $DB->get_records_select($this->get_table_name(), $select, $params, $sort, $fields, $limitfrom, $limitnum);
// We return class instances.
$instances = array();