Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php |
— | — | @@ -284,7 +284,11 @@ |
285 | 285 | $db->delete( 'smw_rels2', array( "(s_id IN $idsString) OR (o_id IN $idsString)" ), 'SIO::deleteRels2Data' ); |
286 | 286 | $db->delete( 'smw_atts2', array( "s_id IN $idsString" ), 'SIO::deleteAtts2Data' ); |
287 | 287 | $db->delete( 'smw_text2', array( "s_id IN $idsString" ), 'SIO::deleteText2Data' ); |
288 | | - $db->delete( 'sm_coords', array( "s_id IN $idsString" ), 'SIO::deleteCoordsData' ); |
| 288 | + // handle the sm_coords table only if the Semantic |
| 289 | + // Maps extension is installed |
| 290 | + if ( defined( 'SM_VERSION' ) ) { |
| 291 | + $db->delete( 'sm_coords', array( "s_id IN $idsString" ), 'SIO::deleteCoordsData' ); |
| 292 | + } |
289 | 293 | } |
290 | 294 | |
291 | 295 | if ( count( $allRels2Inserts ) > 0 ) { |