* Added int-casting to str_repeat() to prevent PHP notice

Fixes #170 hopefully
This commit is contained in:
Garvin Hicking 2014-05-23 11:01:47 +02:00
parent 6b87d2bf95
commit e1ba0bef7b
3 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,6 @@
TODO:
* Collect all tweets of a day/week/whatever of the blog owner
into one article and publish it dayly/weekly/whatever
* "check tweetback" link should add new tweetbacks immediately
@ -8,6 +9,10 @@ TODO:
* Twitter announcements/credentials etc. per author instead of
only per central blog
1.61
--------------------------
* Added int-casting to str_repeat() to prevent PHP notice
1.60
--------------------------

View file

@ -1,4 +1,4 @@
<?php
// Actual version of both plugins
@define('PLUGIN_TWITTER_VERSION', '1.60');
@define('PLUGIN_TWITTER_VERSION', '1.61');

View file

@ -2021,8 +2021,8 @@ a.twitter_update_time {
// Create strings of twitter URL length:
$this->twitter_check_config();
$http_length_str = str_repeat("=", $this->get_config('twitter_config_http_len'));
$https_length_str = str_repeat("=", $this->get_config('twitter_config_https_len'));
$http_length_str = str_repeat("=", (int)$this->get_config('twitter_config_http_len'));
$https_length_str = str_repeat("=", (int)$this->get_config('twitter_config_https_len'));
// Hide shorten url input, if no url shorter is used!
if ('raw' == $this->get_config('anounce_url_service','7ax.de')) {