Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -106,6 +106,11 @@ class _Twitter extends PromoteAbstract
|
||||
public function canPostToPage()
|
||||
{
|
||||
$twitter = \IPS\Login\Handler::findMethod('IPS\Login\Handler\Oauth1\Twitter');
|
||||
if ( $twitter === NULL )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return $twitter->hasWritePermissions( $this->settings['token'], $this->settings['secret'] );
|
||||
}
|
||||
|
||||
@@ -194,8 +199,8 @@ class _Twitter extends PromoteAbstract
|
||||
{
|
||||
$photos = $promote->imageObjects();
|
||||
$mediaIds = array();
|
||||
|
||||
if ( \count( $photos ) )
|
||||
|
||||
if ( \is_array( $photos ) and \count( $photos ) )
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user