do not recalculate avg color repeatedly
This commit is contained in:
parent
560cbd8c0d
commit
6ee0d4b05c
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@
|
|||
if ($favicon_modified_new > $favicon_modified)
|
||||
$favicon_avg_color = '';
|
||||
|
||||
if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color != 'fail') {
|
||||
if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color == '') {
|
||||
require_once "colors.php";
|
||||
|
||||
$favicon_color = db_escape_string(
|
||||
|
|
Loading…
Reference in a new issue