Skip to content
Snippets Groups Projects
Commit 9aefb14a authored by xamgore's avatar xamgore
Browse files

Incorrect sql query fix (redundant symbol)

parent c5ac398d
No related merge requests found
...@@ -35,7 +35,7 @@ class Model_Student extends Model ...@@ -35,7 +35,7 @@ class Model_Student extends Model
* @return $this; * @return $this;
*/ */
public function toAcademicLeave() { public function toAcademicLeave() {
$sql = "CALL `ControlStudentGroup`(:id, -1, true');"; $sql = "CALL `ControlStudentGroup`(:id, -1, true);";
DB::query(Database::SELECT, $sql) DB::query(Database::SELECT, $sql)
->param(':id', $this->id) ->param(':id', $this->id)
...@@ -50,7 +50,7 @@ class Model_Student extends Model ...@@ -50,7 +50,7 @@ class Model_Student extends Model
* @return $this; * @return $this;
*/ */
public function attach($group) { public function attach($group) {
$sql = "CALL `ControlStudentGroup`(:id, :group, false');"; $sql = "CALL `ControlStudentGroup`(:id, :group, false);";
DB::query(Database::SELECT, $sql) DB::query(Database::SELECT, $sql)
->param(':id', $this->id) ->param(':id', $this->id)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment