]> git.mjollnir.org Git - moodle.git/commit
Add LIMIT of 1 to get_record functions ... the behaviour of returning false
authormoodler <moodler>
Thu, 19 Jun 2003 02:18:51 +0000 (02:18 +0000)
committermoodler <moodler>
Thu, 19 Jun 2003 02:18:51 +0000 (02:18 +0000)
commitdc7e8cb582ab3010a2c37444a10ddd4a3aa02667
treed2252193d5d6b37394753612953747c7700e30fc
parent6d4952f3cfe60789cf8820ff6dfc6627cba494db
Add LIMIT of 1 to get_record functions ... the behaviour of returning false
when there were more than one record returned was sometimes causing
problems if the data was unclean due to a bug somewhere.

For example, if there are two copies of a section, then Moodle keeps
creating new ones because it can't find ONE.  This fix prevents that.
lib/datalib.php