Fixing indentation bugs

1.9.x
Yoselyn Castillo 11 years ago
parent e872126602
commit 753b93f533
  1. 8
      main/gradebook/lib/be/exerciselink.class.php

@ -85,9 +85,11 @@ class ExerciseLink extends AbstractLink
d.id = ip.ref AND ip.tool = '".TOOL_DOCUMENT."' AND (d.path LIKE '%htm%')AND (d.path LIKE '%HotPotatoes_files%')
AND d.path LIKE '".Database :: escape_string($uploadPath)."/%/%' AND ip.visibility='1'";
/* $sql = 'SELECT id,title from '.$this->get_exercise_table().'
/*
$sql = 'SELECT id,title from '.$this->get_exercise_table().'
WHERE c_id = '.$this->course_id.' AND active=1 AND session_id='.api_get_session_id().'';
*/ require_once api_get_path(SYS_CODE_PATH).'exercice/hotpotatoes.lib.php';
*/
require_once api_get_path(SYS_CODE_PATH).'exercice/hotpotatoes.lib.php';
if (!$this->is_hp) {
$result = Database::query($sql);
} else {
@ -95,7 +97,7 @@ class ExerciseLink extends AbstractLink
}
$cats = array();
if (isset($result)) {
if (mysql_numrows($result) > 0) {
if (Database::num_rows($result) > 0) {
while ($data=Database::fetch_array($result)) {
$cats[] = array ($data['id'], $data['title']);
}

Loading…
Cancel
Save