From 5ee3c05f549b98ba107a2fbce14a42d76bf7e2a6 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Wed, 16 Nov 2016 11:41:33 +0100 Subject: [PATCH] fix HTTP_Request2 --- admin/stop.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/admin/stop.php b/admin/stop.php index 48237a3..7a15410 100644 --- a/admin/stop.php +++ b/admin/stop.php @@ -1,6 +1,8 @@ addPostFields(array('act'=>$act, 'hosts'=>$hosts )); - try { $http->send(); } catch (HttpException $ex) { echo $ex; } + $http = new HTTP_Request2( $url, HTTP_Request2::METHOD_POST); + $http->addPostParameter(array('act'=>$act, 'hosts'=>$hosts )); + try { + $http->send(); + } + catch (HTTP_Request2_Exception $ex) { + echo $ex; + } } header('Location: salles_live.php'); ?>