mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fixing php notice: Undefined index key
This commit is contained in:
parent
7f64d858dd
commit
47da2ef8db
1 changed files with 1 additions and 1 deletions
|
|
@ -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` = ? ');
|
||||
|
|
|
|||
Loading…
Reference in a new issue