joomla/joomla-platform — pull request #942 by oc666 (2012-03-01 00:21:00+00:00)
Title: fix bug #28039

The bug produce cause preg_match not checked for return value.
The bug report: PHP Notice: Undefined offset: 1
Cause it tries to find the second item in the matches ($version) array, where is declared from preg_match function before the line error.
See more here:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=28039