mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 17:33:19 +03:00
Removed unnecessary "stripcslashes" method call (fixes #194)
This commit is contained in:
parent
2c38a2165e
commit
e6082ab2e0
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ class Backend_api extends CI_Controller {
|
||||||
|
|
||||||
// :: SAVE CUSTOMER CHANGES TO DATABASE
|
// :: SAVE CUSTOMER CHANGES TO DATABASE
|
||||||
if (isset($_POST['customer_data'])) {
|
if (isset($_POST['customer_data'])) {
|
||||||
$customer = json_decode(stripcslashes($_POST['customer_data']), true);
|
$customer = json_decode($_POST['customer_data'], true);
|
||||||
|
|
||||||
$REQUIRED_PRIV = (!isset($customer['id']))
|
$REQUIRED_PRIV = (!isset($customer['id']))
|
||||||
? $this->privileges[PRIV_CUSTOMERS]['add']
|
? $this->privileges[PRIV_CUSTOMERS]['add']
|
||||||
|
@ -231,7 +231,7 @@ class Backend_api extends CI_Controller {
|
||||||
|
|
||||||
// :: SAVE APPOINTMENT CHANGES TO DATABASE
|
// :: SAVE APPOINTMENT CHANGES TO DATABASE
|
||||||
if (isset($_POST['appointment_data'])) {
|
if (isset($_POST['appointment_data'])) {
|
||||||
$appointment = json_decode(stripcslashes($_POST['appointment_data']), true);
|
$appointment = json_decode($_POST['appointment_data'], true);
|
||||||
|
|
||||||
$REQUIRED_PRIV = (!isset($appointment['id']))
|
$REQUIRED_PRIV = (!isset($appointment['id']))
|
||||||
? $this->privileges[PRIV_APPOINTMENTS]['add']
|
? $this->privileges[PRIV_APPOINTMENTS]['add']
|
||||||
|
|
Loading…
Reference in a new issue