Adapt single image function accordingly

This commit is contained in:
phl0
2024-08-26 17:38:43 +02:00
parent dd3045fcc2
commit 205783e645

View File

@@ -318,7 +318,12 @@ class eqsl extends CI_Controller {
$images = $dom->getElementsByTagName('img');
if (!isset($images) || count($images) == 0) {
echo "Rate Limited";
$h3 = $dom->getElementsByTagName('h3');
if (isset($h3)) {
echo $h3->item(0)->nodeValue;
} else {
echo "Rate Limited";
}
exit;
}