aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-10-03 22:31:21 +0200
committerKevin Chabowski <kevin@kch42.de>2013-10-03 22:31:21 +0200
commit458b2eaaad507180ab3f95a765534041874ac914 (patch)
treebd00a8f58821b153e1e1c08c3cbc6b2e01d7b059
parent78c95c09f05e4fa12b66bd27714ce4889a892c21 (diff)
downloadratatoeskr-cms-458b2eaaad507180ab3f95a765534041874ac914.tar.gz
ratatoeskr-cms-458b2eaaad507180ab3f95a765534041874ac914.tar.bz2
ratatoeskr-cms-458b2eaaad507180ab3f95a765534041874ac914.zip
Fixed wrong variable names
-rw-r--r--ratatoeskr/sys/models.php8
1 files 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()