From 0da75a6bca48238bce20b7a5c90210e14d2b1942 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 23 Jan 2015 21:19:21 +0100 Subject: [PATCH] Adjusted indention --- php/api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/api.php b/php/api.php index 0c129d8..6e9813b 100755 --- a/php/api.php +++ b/php/api.php @@ -60,12 +60,12 @@ if (!empty($_POST['function'])||!empty($_GET['function'])) { # Validate parameters if (isset($_POST['albumIDs'])&&preg_match('/^[0-9\,]{1,}$/', $_POST['albumIDs'])!==1) exit('Error: Wrong parameter type for albumIDs!'); if (isset($_POST['photoIDs'])&&preg_match('/^[0-9\,]{1,}$/', $_POST['photoIDs'])!==1) exit('Error: Wrong parameter type for photoIDs!'); - if (isset($_POST['albumID'])&&preg_match('/^[0-9sfr]{1,}$/', $_POST['albumID'])!==1) exit('Error: Wrong parameter type for albumID!'); + if (isset($_POST['albumID'])&&preg_match('/^[0-9sfr]{1,}$/', $_POST['albumID'])!==1) exit('Error: Wrong parameter type for albumID!'); if (isset($_POST['photoID'])&&preg_match('/^[0-9]{14}$/', $_POST['photoID'])!==1) exit('Error: Wrong parameter type for photoID!'); # Function for switch statement - if (isset($_POST['function'])) $fn = $_POST['function']; - else $fn = $_GET['function']; + if (isset($_POST['function'])) $fn = $_POST['function']; + else $fn = $_GET['function']; if (isset($_SESSION['login'])&&$_SESSION['login']==true) {