Permalink
Browse files

dl doesn't always exist

  • Loading branch information...
Seldaek committed Sep 4, 2011
1 parent c8e396b commit 0d36d802b063f40156573face4242e924ee9acc7
Showing with 1 addition and 1 deletion.
  1. +1 −1 adaptive-images.php
View
@@ -146,7 +146,7 @@ function findSharp($intOrig, $intFinal) {
/* check that PHP has the GD library available to use for image re-sizing */
if (!extension_loaded('gd')) { // it's not loaded
- if (!dl('gd.so')) { // and we can't load it either
+ if (!function_exists('dl') || !dl('gd.so')) { // and we can't load it either
if (!file_exists($document_root.$requested_uri)) { // and the requested file doesn't exist
header("Status: 404 Not Found");
exit();

0 comments on commit 0d36d80

Please sign in to comment.