summaryrefslogtreecommitdiffstats
path: root/core/ajax/translations.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-03-02 00:53:53 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-03-02 00:53:53 +0100
commit630483c75d300e26a5c57cdb0b8957d8e1a30c07 (patch)
treed81fe7cc23d8ac0dc90a27b7bdc51981b3dde06e /core/ajax/translations.php
parent31754a653b13fdf31273177f12c39e32cb8c4001 (diff)
downloadnextcloud-server-630483c75d300e26a5c57cdb0b8957d8e1a30c07.tar.gz
nextcloud-server-630483c75d300e26a5c57cdb0b8957d8e1a30c07.zip
Fix notice
Diffstat (limited to 'core/ajax/translations.php')
-rw-r--r--core/ajax/translations.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ajax/translations.php b/core/ajax/translations.php
index e52a2e9b1e8..c9c64207798 100644
--- a/core/ajax/translations.php
+++ b/core/ajax/translations.php
@@ -21,7 +21,8 @@
*
*/
-$app = $_POST["app"];
+$app = isset($_POST["app"]) ? $_POST["app"] : "";
+
$app = OC_App::cleanAppId($app);
$l = OC_L10N::get( $app );