mirror of
https://github.com/retailcrm/legacy.git
synced 2025-02-19 16:23:15 +03:00
commit
c25617ff45
@ -14,16 +14,9 @@ $shortopts = 'dluce:m:p:r:h:';
|
||||
|
||||
$options = getopt($shortopts);
|
||||
|
||||
if (!$options || $options == -1) {
|
||||
$opt = new OptHelper($shortopts);
|
||||
$options = $opt->get();
|
||||
}
|
||||
|
||||
if (isset($options['e'])) {
|
||||
$command = new Command($options);
|
||||
$command->run();
|
||||
} elseif (!$options) {
|
||||
CommandHelper::notWorkGetOptNotice();
|
||||
} else {
|
||||
CommandHelper::runHelp();
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ class DataHelper
|
||||
{
|
||||
public static function getDate($file)
|
||||
{
|
||||
if (file_exists($file)) {
|
||||
if (file_exists($file) && 1 < filesize($file)) {
|
||||
$result = file_get_contents($file);
|
||||
} else {
|
||||
$result = date(
|
||||
|
Loading…
x
Reference in New Issue
Block a user