- /** OS: we don't want to parse last element of array, 'cause it is OK command, so we unset it **/
- unset($lsub_ary[count($lsub_ary)-1]);
+ /** OS: we don't want to parse last element of array, 'cause it is OK command, so we unset it **/
+ /** LUKE: This introduced errors.. do a check first **/
+ if (substr($lsub_ary[count($lsub_ary)-1], 0, 4) == "* OK") {
+ unset($lsub_ary[count($lsub_ary)-1]);
+ }