http://atutor.ca/atutor/mantis/view.php?id=4794
authorcindy li <cli@ocad.ca>
Tue, 9 Aug 2011 15:53:23 +0000 (15:53 -0000)
committercindy li <cli@ocad.ca>
Tue, 9 Aug 2011 15:53:23 +0000 (15:53 -0000)
Fixed the php error that is thrown on explode().

docs/install/include/step7.php

index 94d2cd3..2931e37 100644 (file)
@@ -14,7 +14,7 @@ if (!defined('AT_INCLUDE_PATH')) { exit; }
 
 require('../svn.php');
 
-$svn_data   = explode("\n", $svn_data);
+if ($svn_data <> '') $svn_data = explode("\n", $svn_data);
 
 if (substr($svn_data[1], 0, 1) == 'r') {
        $svn_data = $svn_data[1];