Skip to content

Commit 26cb208

Browse files
committed
make sure $valueItem is an instance of SMWDIBlob
1 parent 942ff44 commit 26cb208

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

SemanticDependencyUpdater.hooks.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace SDU;
44

55
use SMW;
6+
use SMWDIBlob;
67
use SMWStore;
78
use SMWSemanticData;
89
use SMWQueryProcessor;
@@ -84,7 +85,9 @@ public static function onAfterDataUpdateComplete( SMWStore $store, SMWSemanticDa
8485

8586
if ( $dataItem != null ) {
8687
foreach ( $dataItem as $valueItem ) {
87-
Hooks::updatePagesMatchingQuery( $valueItem->getString() );
88+
if ( $valueItem instanceof SMWDIBlob ) {
89+
Hooks::updatePagesMatchingQuery( $valueItem->getSerialization() );
90+
}
8891
}
8992
}
9093

extension.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SemanticDependencyUpdater",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"author": [
55
"Simon Heimler (gesinn.it GmbH & Co. KG)",
66
"Alexander Gesinn (gesinn.it GmbH & Co. KG)",

0 commit comments

Comments
 (0)