diff options
author | friendica <info@friendica.com> | 2013-08-05 20:36:05 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-05 20:36:05 -0700 |
commit | 790c6507d5d9d914f9e9e546256ee2741d6df400 (patch) | |
tree | 736dd1d4a178690ab3e59aae87ba28cabe0afdf9 /include | |
parent | d5e873f5497c782397907ed44a4cf82a4f24c912 (diff) | |
download | volse-hubzilla-790c6507d5d9d914f9e9e546256ee2741d6df400.tar.gz volse-hubzilla-790c6507d5d9d914f9e9e546256ee2741d6df400.tar.bz2 volse-hubzilla-790c6507d5d9d914f9e9e546256ee2741d6df400.zip |
keep total of imported xchans correct - even if one or mail failures occur
Diffstat (limited to 'include')
-rw-r--r-- | include/socgraph.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/socgraph.php b/include/socgraph.php index d3477a2fe..73ece26ba 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -66,7 +66,6 @@ function poco_load($xchan = '',$url = null) { $total = 0; foreach($j['entry'] as $entry) { - $total ++; $profile_url = ''; $profile_photo = ''; $address = ''; @@ -121,14 +120,18 @@ function poco_load($xchan = '',$url = null) { $x = q("select xchan_hash from xchan where xchan_hash = '%s' limit 1", dbesc($hash) ); - if(! $x) + if(! $x) { continue; - + } } - else + else { continue; + } } + $total ++; + + $r = q("select * from xlink where xlink_xchan = '%s' and xlink_link = '%s' limit 1", dbesc($xchan), dbesc($hash) |