diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-31 10:02:18 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-31 10:02:18 +0100 |
commit | 47da2ef8db27d7fd52b615e3f1e4e67d969aad06 (patch) | |
tree | d2fefe6e69fb5cd7cbc6a318229ebf60b0cb7908 /lib/private/ocs | |
parent | 7f64d858ddcf62602c40b32ec2325c70a74b8292 (diff) | |
download | nextcloud-server-47da2ef8db27d7fd52b615e3f1e4e67d969aad06.tar.gz nextcloud-server-47da2ef8db27d7fd52b615e3f1e4e67d969aad06.zip |
fixing php notice: Undefined index key
Diffstat (limited to 'lib/private/ocs')
-rw-r--r-- | lib/private/ocs/privatedata.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/ocs/privatedata.php b/lib/private/ocs/privatedata.php index e528dfbcb74..4b16268b8f4 100644 --- a/lib/private/ocs/privatedata.php +++ b/lib/private/ocs/privatedata.php @@ -35,7 +35,7 @@ class OC_OCS_Privatedata { public static function get($parameters) { $user = OC_User::getUser(); $app = addslashes(strip_tags($parameters['app'])); - $key = addslashes(strip_tags($parameters['key'])); + $key = isset($parameters['key']) ?addslashes(strip_tags($parameters['key'])) : null; if(empty($key)) { $query = \OCP\DB::prepare('SELECT `key`, `app`, `value` FROM `*PREFIX*privatedata` WHERE `user` = ? AND `app` = ? '); |