Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
VarunAgw Posted December 17, 2020 Posted December 17, 2020 (edited) \applications\cms\sources\Databases\Databases.php:hasReciprocalLinking($databaseId) if ( $data['database'] == $databaseId and $data['crosslink'] ) This line in hasReciprocalLinking() method throws notice error for me. 14 => array (size=7) 0 => array (size=1) 'database' => string '10' (length=2) 1 => array (size=1) 'database' => string '12' (length=2) 2 => array (size=1) 'database' => string '12' (length=2) 3 => array (size=1) 'database' => string '7' (length=1) 4 => array (size=1) 'database' => string '26' (length=2) 5 => array (size=1) 'database' => string '13' (length=2) 6 => array (size=1) 'database' => string '13' (length=2) 15 => array (size=1) 0 => array (size=1) 'database' => string '13' (length=2) 16 => array (size=4) 0 => array (size=1) 'database' => string '7' (length=1) 1 => array (size=2) 'database' => string '16' (length=2) 'crosslink' => boolean true 2 => array (size=2) 'database' => string '16' (length=2) 'crosslink' => boolean true 3 => array (size=1) 'database' => string '9' (length=1) 17 => array (size=3) 0 => array (size=1) 'database' => string '16' (length=2) That's how the $values object looks like. Note when crosslink is false, it's not set to false by IPS in $values, instead the crosslink key is removed from the array, which causes `if ( $data['database'] == $databaseId and $data['crosslink'] )` to throw a notice. Edited December 17, 2020 by VarunAgw
bfarber Posted December 17, 2020 Posted December 17, 2020 I've logged an internal bug report to have this checked on. Thanks.
VarunAgw Posted December 19, 2020 Author Posted December 19, 2020 If there is an update to it, please do let me know. I am curious if I am doing something wrong.
Recommended Posts