Skip to content

Commit

Permalink
Merge pull request #1 from dmetzner/undefined-path
Browse files Browse the repository at this point in the history
NICE-66844 Undefined variable $path
  • Loading branch information
dmetzner authored Aug 2, 2024
2 parents 92616f4 + a569c6f commit 15f8905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Resource/FilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function populate(Source $source, Template $_template = null) {
* @param Source $source source object
*/
public function populateTimestamp(Source $source) {
$path = false;
if (!$source->exists && $path = $this->getFilePath($source->name, $source->getSmarty(), $source->isConfig)) {
$source->timestamp = $source->exists = is_file($path);
}
Expand Down

0 comments on commit 15f8905

Please sign in to comment.