Skip to content
Snippets Groups Projects
Commit 2344bb4f authored by git's avatar git Committed by Niels de Feyter
Browse files

Issue #2419399 by eurotrash: Undefined property Notice

parent a645edfd
Branches
Tags 7.x-1.2
No related merge requests found
......@@ -294,7 +294,7 @@ function _unused_modules_add_project_path(&$modules) {
// Determine common basepath by looking for needle "/<project>/" in uri.
// As a fallback use the shortest path method.
foreach ($project as $module) {
if ($module->error !== TRUE) {
if (isset($module->error) && $module->error !== TRUE) {
$needle = "/" . $module->project . "/";
$before_needle = TRUE;
$project_path = strstr($module->uri, $needle, $before_needle) . "/" . $module->project;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment