}
unset($branch);
if($existing)
- continue;
+ return;
+ $name_arr = array();
+ if($name)
+ $name_arr[] = $name;
$this->data['branches'][count($this->data['branches'])] = array(
"id" => $this->brach_id++,
"uid" => $this->branch_uid++,
"active" => true,
"sticky" => true,
- "name" => array($name),
+ "name" => $name_arr,
"next" => $first_id,
"pre_merge" => false
);
$branch['active'] = false;
$commit['dot_type'] = self::DOT_TYPE_INIT;
}
- $branch['next'] = (array_key_exists('parent', $commit) ? $commit['parent'][0] : null);
+ $branch['next'] = ((array_key_exists('parent', $commit) && count($commit['parent'])) ? $commit['parent'][0] : null);
$branch['pre_merge'] = false;
$this->data['ubranches'][$branch['uid']] = $this->data['branches'][$branch['id']-1];
header('Content-Type: image/png');
imagepng($image);
imagedestroy($image);
+ die();
}
private function parse_data($data) {