Commit f302c734 authored by MBoretto's avatar MBoretto

introduce noplanman suggestion

parent 0567c8cc
...@@ -80,10 +80,10 @@ class Conversation ...@@ -80,10 +80,10 @@ class Conversation
$this->chat_id = $chat_id; $this->chat_id = $chat_id;
$this->command = $command; $this->command = $command;
$this->command_is_provided = (is_null($command)) ? false : true; $this->command_is_provided = ($command !== null);
//Try to load an existing conversation if possible //Try to load an existing conversation if possible
if (!$this->load() && !is_null($command)) { if (!$this->load() && $this->command_is_provided) {
//A new conversation start //A new conversation start
$this->start(); $this->start();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment