MDL-10970 Someone was using
commit3565ff92e48f4c8dd28743a466501be122604882
authornicolasconnault <nicolasconnault>
Fri, 24 Aug 2007 06:01:15 +0000 (24 06:01 +0000)
committernicolasconnault <nicolasconnault>
Fri, 24 Aug 2007 06:01:15 +0000 (24 06:01 +0000)
tree32fe260c8367ae6ce562959ce3f4258e22d3b165
parent658d357c616a96974d3b285c2a45a360bccb3bdd
MDL-10970 Someone was using
$locations = array('location1');
$locations += array('location2', 'location3', 'location4');

to save the hassle of doing one $locations[] = 'location1'; for each location.

But += doesn't add any entry if the key of the new array already exists in the original array. So, using my example, the resulting array would be:

$locations: array('location1', 'location3', 'location4');
grade/lib.php
lib/moodlelib.php