minor - fixed error typo in sql query

skala
Cristian Fasanando 15 years ago
parent ab6e8660ab
commit 1874f098de
  1. 2
      main/inc/lib/add_course.lib.inc.php

@ -122,7 +122,7 @@ function define_course_keys($wantedCode, $prefix4all = "", $prefix4baseName = ""
$keysAreUnique = true;
// check if they are unique
echo $query = "SELECT 1 FROM ".$course_table . " WHERE code='".$keysCourseId . "' LIMIT 0,1";
$query = "SELECT 1 FROM ".$course_table . " WHERE code='".$keysCourseId . "' LIMIT 0,1";
$result = Database::query($query, __FILE__, __LINE__);
if($keysCourseId == DEFAULT_COURSE || Database::num_rows($result))

Loading…
Cancel
Save