mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:55:15 +00:00
issue #466, sql typo
This commit is contained in:
parent
02fc082e45
commit
4ce8f965aa
3 changed files with 3 additions and 3 deletions
|
@ -173,7 +173,7 @@ class Ping extends \Zotlabs\Web\Controller {
|
|||
);
|
||||
break;
|
||||
case 'all_events':
|
||||
$r = q("update event set `dimissed` = 1 where `dismissed` = 0 and uid = %d AND dtstart < '%s' AND dtstart > '%s' ",
|
||||
$r = q("update event set `dismissed` = 1 where `dismissed` = 0 and uid = %d AND dtstart < '%s' AND dtstart > '%s' ",
|
||||
intval(local_channel()),
|
||||
dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now + ' . intval($evdays) . ' days')),
|
||||
dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now - 1 days'))
|
||||
|
|
|
@ -13,7 +13,7 @@ require_once('include/api_auth.php');
|
|||
|
||||
/*
|
||||
*
|
||||
* Red API. Loosely based on and possibly compatible with a Twitter-Like API but all similarities end there.
|
||||
* Hubzilla API. Loosely based on and possibly compatible with Twitter-Like (v1.0) API but all similarities end there.
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ class ASN_BASE {
|
|||
}
|
||||
$length = $tempLength;
|
||||
}
|
||||
$data = substr($string, $p, $length);
|
||||
$data = substr($string, $p, intval($length));
|
||||
$parsed[] = self::parseASNData($type, $data, $level, $maxLevels);
|
||||
$p = $p + $length;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue