Skip to content

Commit 1c4aaa4

Browse files
authored
Fixed CURL test in Setup
CURL test moved from phpvibe.com to dummyjson.com
1 parent f054a0b commit 1c4aaa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup/reqcheck.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ function getDataFromUrl($url) {
180180
echo '<div class="lillist">'.$passed.' Safe Mode is off. (Required : Off)</div>';
181181
}
182182

183-
$result = getDataFromUrl("http://labs.phpvibe.com/demo.php");
183+
$result = getDataFromUrl("https://dummyjson.com/products");
184184
$result = json_decode($result, true);
185-
if($result['valid'] == "true"){
185+
if($result['products']){
186186
echo '<div class="lillist">'.$passed.' cUrl test passed.</div>';
187187
} else {
188188
echo '<div class="lillist">'.$aerror.' cUrl test failed.</div>';
@@ -222,4 +222,4 @@ function getDataFromUrl($url) {
222222
</div>
223223
</body>
224224
</html>';
225-
?>
225+
?>

0 commit comments

Comments
 (0)