Skip to content
Snippets Groups Projects
Commit 7f7a13f3 authored by Earl Miles's avatar Earl Miles
Browse files

Another extra check for css files.

parent 0c4ecdef
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@
*/
function ctools_css_store($id, $css, $filter = TRUE) {
$filename = db_result(db_query("SELECT filename FROM {ctools_css_cache} WHERE cid = '%s'", $id));
if ($filename) {
if ($filename && file_exists($filename)) {
file_delete($filename);
}
// Remove any previous records.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment