From 458b2eaaad507180ab3f95a765534041874ac914 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 3 Oct 2013 22:31:21 +0200 Subject: Fixed wrong variable names --- ratatoeskr/sys/models.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index 3caeb7f..e750b28 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -248,7 +248,7 @@ class User extends BySQLRowEnabled global $db_con; try { - $obj = self::by_name($name); + $obj = self::by_name($username); } catch(DoesNotExistError $e) { @@ -1288,7 +1288,7 @@ class Style extends BySQLRowEnabled */ public function save() { - if(!self::test_name($name)) + if(!self::test_name($this->name)) throw new InvalidDataError("invalid_style_name"); transaction(function() @@ -1716,7 +1716,7 @@ class Section extends BySQLRowEnabled */ public function save() { - if(!self::test_name($name)) + if(!self::test_name($this->name)) throw new InvalidDataError("invalid_section_name"); transaction(function() @@ -1939,7 +1939,7 @@ WHERE `b`.`tag` = ?" , $this->id); */ public function save() { - if(!self::test_name($name)) + if(!self::test_name($this->name)) throw new InvalidDataError("invalid_tag_name"); transaction(function() -- cgit v1.2.3-70-g09d2