This commit is contained in:
Neil Fraser
2019-08-01 16:39:29 -07:00
committed by Neil Fraser
parent ae24b544f3
commit 939bbd072b
7 changed files with 12 additions and 13 deletions

View File

@@ -430,7 +430,7 @@ Blockly.PHP['lists_getSublist'] = function(block) {
' $at1 = count($list) - 1 - $at1;',
' } else if ($where1 == \'FIRST\') {',
' $at1 = 0;',
' } else if ($where1 != \'FROM_START\'){',
' } else if ($where1 != \'FROM_START\') {',
' throw new Exception(\'Unhandled option (lists_get_sublist).\');',
' }',
' $length = 0;',

View File

@@ -174,7 +174,7 @@ Blockly.PHP['text_getSubstring'] = function(block) {
' $at1 = strlen($text) - 1 - $at1;',
' } else if ($where1 == \'FIRST\') {',
' $at1 = 0;',
' } else if ($where1 != \'FROM_START\'){',
' } else if ($where1 != \'FROM_START\') {',
' throw new Exception(\'Unhandled option (text_get_substring).\');',
' }',
' $length = 0;',