summaryrefslogtreecommitdiff
path: root/includes/model/Sprache_model.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2013-10-13 00:52:44 +0200
committerPhilip Häusler <msquare@notrademark.de>2013-10-13 00:52:44 +0200
commit3c4321ff76accb98ec3c99316766234ebcafae90 (patch)
tree7461bf942302ec3344a5006f3d40c49963ac28dc /includes/model/Sprache_model.php
parentbfb0cacd541cc20129a3c0ac77130370741dca18 (diff)
30c3 theme
Diffstat (limited to 'includes/model/Sprache_model.php')
-rw-r--r--includes/model/Sprache_model.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/model/Sprache_model.php b/includes/model/Sprache_model.php
index 55683411..0b18dbca 100644
--- a/includes/model/Sprache_model.php
+++ b/includes/model/Sprache_model.php
@@ -2,17 +2,23 @@
/**
* Load a string by key.
+ *
* @param string $textid
* @param string $sprache
*/
function Sprache($textid, $sprache) {
- $sprache_source = sql_select("SELECT * FROM `Sprache` WHERE `TextID`='" . sql_escape($textid) . "' AND `Sprache`='" . sql_escape($sprache) . "' LIMIT 1");
- if($sprache_source === false)
+ $sprache_source = sql_select("
+ SELECT *
+ FROM `Sprache`
+ WHERE `TextID`='" . sql_escape($textid) . "'
+ AND `Sprache`='" . sql_escape($sprache) . "'
+ LIMIT 1
+ ");
+ if ($sprache_source === false)
return false;
- if(count($sprache_source) == 1)
+ if (count($sprache_source) == 1)
return $sprache_source[0];
return null;
}
-
?> \ No newline at end of file