Fixes the undefined offset notice when no project is assigned to a task
removed redundant  declaration
check if a task is a subtask
Merge pull request #38 from develkar/master

Fixes the undefined offset notice when no project is assigned to a task