diff --git a/core/Object.php b/core/Object.php
index <HASH>..<HASH> 100755
--- a/core/Object.php
+++ b/core/Object.php
@@ -418,9 +418,12 @@ abstract class Object {
 		
 		// merge with existing static vars
 		$extensions = self::uninherited_static($class, 'extensions');
+		
 		// We use unshift rather than push so that module extensions are added before built-in ones.
 		// in particular, this ensures that the Versioned rewriting is done last.
-		array_unshift($extensions, $extension);
+		if($extensions) array_unshift($extensions, $extension);
+		else $extensions = array($extension);
+		
 		self::set_static($class, 'extensions', $extensions);
 		
 		// load statics now for DataObject classes
BUGFIX: Ameneded r<I> so that the application order of extensions is the same as it was previously.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@<I> <I>b<I>ca-7a2a-<I>-9d3b-<I>d<I>a<I>a9