Skip to content

Commit 9cd8d09

Browse files
committed
if no lib behavior
1 parent 9dbba18 commit 9cd8d09

File tree

2 files changed

+3
-55
lines changed

2 files changed

+3
-55
lines changed

ardubadge.php

-52
This file was deleted.

index.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ function get_name($str) {
1212
}
1313

1414
if (!isset($_GET["lib"])) {
15-
die;
15+
$lib = "No lib specified";
16+
}else{
17+
$lib = $_GET["lib"];
1618
}
17-
18-
$lib = $_GET["lib"];
1919
$cache_file = '/tmp/arduino_lib_' . md5($lib) . '.cache';
2020

2121
if (file_exists($cache_file) && (time() - filemtime($cache_file) < 86000)) {

0 commit comments

Comments
 (0)